<?php
ob_start();
$host = "localhost"; // je hostname, meestal localhost
$user = "root"; // je username
$pass = "xampp"; // je wachtwoord
$dbas = "minevents"; // je database-naam



// connect naar database
if(mysql_connect($host, $user, $pass)) {
  // selecteer database
  mysql_select_db($dbas) or die(mysql_error());
} else {
  // connecten naar database is mislukt
  echo "Failed to connect to database.";
  exit;
}

